import { IParam } from '@/core';
import { Sys_menu_funcServiceBase } from './sys-menu-func-service-base';

/**
 * 菜单功能服务
 * 基于template/src/api/{{appEntities}}/data-service/{{appEntities}}-service.ts.hbs生成
 *
 * @export
 * @class Sys_menu_funcService
 * @extends Sys_menu_funcServiceBase
 */
export class Sys_menu_funcService extends Sys_menu_funcServiceBase {
	/**
	 * 基础数据服务实例
	 *
	 * @private
	 * @type { Sys_menu_funcService }
	 * @memberof Sys_menu_funcService
	 */
	private static basicDataServiceInstance: Sys_menu_funcService;

	/**
	 * 数据服务存储Map对象
	 *
	 * @private
	 * @type {Map<string, any>}
	 * @memberof Sys_menu_funcService
	 */
	private static dataServiceMap: Map<string, any> = new Map();

	/**
	 * Creates an instance of Sys_menu_funcService.
	 * @memberof Sys_menu_funcService
	 */
	constructor(opts?: IParam) {
		super(opts);
	}

	/**
	 * 获取实例
	 *
	 * @static
	 * @param 应用上下文
	 * @return {*}  { Sys_menu_funcService }
	 * @memberof Sys_menu_funcService
	 */
	static getInstance(opts?: IParam): Sys_menu_funcService {
		if (!this.basicDataServiceInstance) {
			this.basicDataServiceInstance = new Sys_menu_funcService(opts);
		}
		return this.basicDataServiceInstance;
	}
}
export default Sys_menu_funcService;
